<%@page import="com.nuaa.domain.ret.RetSupEntity"%>
<%@page import="com.nuaa.domain.ret.ReturnEntity"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String contextPath = request.getContextPath();
	ReturnEntity retInfo = (ReturnEntity)request.getAttribute("retInfo");
%>
<jsp:include page="/WEB-INF/jsp/common/fadeout.jsp"></jsp:include>
<style scoped="scoped">
        .textbox{
            height:20px;
            margin:0;
            padding:0 2px;
            box-sizing:content-box;
        }
    </style>
<style type="text/css">
	table{
		font-size:25;
		font-family:sans-serif;
	}
	table tr td{
		align:left;
	}
</style>
<div id="ret_sup" class="easyui-layout" data-options="fit:true">  
<div data-options="region:'center',split:false" style="padding:10px;">
<form id='ret_order_form' method="post">
	<input type="hidden" name="id" value=<%=retInfo.getId()%>>
	<table align="center">
		<tr><td colspan="2" style="text-align:center;color:blue;font-weight:bold">订单明细</td></tr>
		<tr></tr>
		<tr>
			<td>订单编号</td>
			<td>&nbsp;<%=retInfo.getOrder_no()%></td>
		</tr>
		<tr></tr>
		<tr>
			<td>客户编号</td>
			<td>&nbsp;<%=retInfo.getCustomer_no()%></td>
		</tr>
		<tr></tr>
		<tr>
			<td>订单业务类型</td>
			<td>&nbsp;<%=retInfo.getBusiness_type()%></td>
		</tr>
		<tr></tr>
		<tr>
			<td>下单时间</td>
			<td>&nbsp;<%=retInfo.getCreate_tm()%></td>
		</tr>
		<tr></tr>
		<tr>
    		<td><label for="repack">美国本土退货地址</label></td>  
    		<td>
        		<select id="usa_local" class="easyui-combobox" data-options="panelHeight:48,value:<%=retInfo.getUsa_local()%>" name="usa_local" style="width:80px;">   
   					 <option value="0">是</option>   
   					 <option value="1">否</option>   
			    </select> 
			   </td>  
		</tr>
		<tr></tr>
		<tr>
			 <td>月平均退货件数</td><td>&nbsp;<input class="easyui-validatebox textbox" data-options="required:true,validType:'integ',missingMessage:'请输入件数'" type="text" name="mon_total" value=<%=retInfo.getMon_total()%>></td>
    	</tr>
    	<tr></tr>
		<tr>
			<td>退货种类数</td><td>&nbsp;<input class="easyui-validatebox textbox" data-options="required:true,validType:'integ'" type="text" name="type_numbers" value=<%=retInfo.getType_numbers()%>></td>
		</tr>
		<tr></tr>
		<tr>
			<td>平均尺寸</td>
			<td  colspan="4">&nbsp;长&nbsp;<input type="text" class="easyui-validatebox textbox" data-options="required:false,validType:'mone'"size="8" name="pro_length" value=<%=retInfo.getPro_length()==null?"":retInfo.getPro_length()%>>
				&nbsp;&nbsp;宽
			     &nbsp;<input type="text" size="8" class="easyui-validatebox textbox" data-options="required:false,validType:'mone'"name="pro_width" value=<%=retInfo.getPro_width()==null?"":retInfo.getPro_width()%>>&nbsp;&nbsp;
			       高&nbsp;<input type="text" size="8" class="easyui-validatebox textbox" data-options="required:false,validType:'mone'"name="pro_height" value=<%=retInfo.getPro_height()==null?"":retInfo.getPro_height()%>>&nbsp;&nbsp;(单位：CM)</td>
		</tr>
		<tr></tr>
		<tr>
    		<td><label for="repack">开包检查</label></td>  
    		<td>
        		<select id="usa_local" class="easyui-combobox" data-options="panelHeight:48,value:<%=retInfo.getIf_check()%>" name="if_check" style="width:80px;"  >   
   					 <option value="0">是</option>   
   					 <option value="1">否</option>   
			    </select> 
			   </td> 
		</tr>
		<tr>
    		<td><label for="repack">故障排查</label></td> 
    		<td>
        		<select id="usa_local" class="easyui-combobox" data-options="panelHeight:48,value:<%=retInfo.getBreak_check()%>" name="break_check" style="width:80px;">   
   					 <option value="0">是</option>   
   					 <option value="1">否</option>   
			    </select> 
			   </td>  
    	</tr>
    	<tr></tr>
		<tr>
    		<td><label for="repack">坏品处理</label></td>  
    		<td>
        		<select id="bad_handle" class="easyui-combobox" data-options="panelHeight:48,value:<%=retInfo.getBad_handle()%>" name="bad_handle" style="width:80px;">   
   					 <option value="0">是</option>   
   					 <option value="1">否</option>   
			    </select> 
			   </td> 
    	</tr>
		<tr>
    		<td><label for="repack">计价方式</label></td>  
    		<td>
        		<select id="eva_method" class="easyui-combobox" data-options="panelHeight:48,value:<%=retInfo.getEva_method()%>" name="eva_method" style="width:80px;">   
   					 <option value="0">包月</option>   
   					 <option value="1">按件数</option>   
			    </select> 
			   </td> 
    	</tr>
	</table>
	</form>
</div>
</div>
<script>
	function subRetMod(){
		$("#ret_order_form").form('submit', {    
			url:'customer/return_business/subMod.do',   
		    onSubmit: function(){//发送前操作
		    	var isValid = $(this).form('validate');
				return isValid;	// 返回false终止表单提交
		    },    
		    success:function(data) {
		    	var data = eval('(' + data + ')');  
			        if(data.success == true){
			        	$.messager.alert('提示','<strong><center>'+data.msg+'</center></strong>');
			        	$("#ret_order_form :input").val('');
			        	$("#all_ret_mod_dialog").dialog('close');
			        	$("#wait_ret_mod_dialog").dialog('close');
			        	$("#proce_ret_mod_dialog").dialog('close');
			        }else{    
			        	$.messager.alert('警告','<strong><center>'+data.msg+'</center></strong>');    
			        }
			        $("#all_ret_mod_dialog").empty();
		        	$("#wait_ret_mod_dialog").empty();
			     }  
		});  
	}
</script>
